<?php
$id = $epg['id'];
$data = preg_replace('/\n|\r| /','',file_get_contents('http://info.ebc.net.tw/Schedule/GetSchedule/U'.$id));
preg_match('/<divclass="tv-date">'.date('Y.m.d').'(.*?)<\/div>(.*?)<\/d/',$data,$data);
preg_match_all('/>(.*?)&nbsp;(.*?)</',$data[2],$epg);
for($i = 0; $i <= count($epg[1]) - 1; $i++) {
    echo '<li><span>'.preg_replace('/<(.*?)>/','',$epg[1][$i]).'&nbsp&nbsp&nbsp&nbsp'.$epg[2][$i].'</span></li>';
};